-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: depend on bazelisk rather than directly on Bazel #36078
Conversation
e8289b9
to
cc60fe5
Compare
This has a couple benefits: - we now use a .bazelversion file rather than package.json to pin the version of bazel we want. This means even if you install bazel on your computer rather than via yarn, you'll still get a warning if your bazel version is wrong. - you no longer end up downloading three copies of bazel due to bugs in both npm and yarn where they download all tarballs before checking the metadata to see which are usable on the local platform. - bazelisk correctly handles the tools/bazel trick for wrapping functionality, which we want to use to instrument developer build latencies
Updating to Bazel 2.2.0 and bazel_toolchains 2.2.0 produces
Which I've seen before when I first tried out 2.0.0 but it was fixed in a subsequent toolchain patch version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for picking this up!
Hi @gregmagolan, would it make sense to run Windows CI jobs for these changes as well (like you did for other PRs)? Thank you. |
Yes it would. I'll make a PR. |
Windows CI running here: #36088 |
Thanks @gregmagolan! 👍 I'll put the "blocked" label on this PR for now, feel free to remove it once Windows CI is completed successfully. Thank you. |
Thanks @AndrewKushnir . Windows CI green #36088. |
Thanks @gregmagolan 👍 I've just merged this PR into master (according to the |
No. Patch branch is behind on Bazel changes due to an incompat with ts_library so only master until the next patch branch. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Based off of @alexeagle's PR #35153
This has a couple benefits:
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information